/**
 *
 */
package cn.dw.sg.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author aubrey
 * @date  上午9:11:04
 * ./
 *
 */
public class PropUtil {
//	public static void main(String[] args) throws IOException {
//		Properties props = new Properties();
//		InputStream in = JdbcUtil.class.getResourceAsStream("/jdbc.properties");
//		props.load(in);
//		System.out.println(props.getProperty("jdbc.url"));
//	}
	
	private static Properties props ;
	static {
		props = new Properties();
		InputStream in = JdbcUtil.class.getResourceAsStream("/jdbc.properties");
		try {
			props.load(in);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static String getProperty(String key) {
		
		return props.getProperty(key);
	}
	
}
